Dup

Syntax

String:Dup(text, copy, return)

Description

Makes a series of duplicated text.

Note

This function is faster than using:

for (i=0; i LT 5; i++) {
  myStr = myStr + "Hello";
}

Example

function main() {
  Var:String myStr = "Hello";
 
  String:Dup(myStr, 5, myStr)
  Konsol:Log(myStr) //see the log for "HelloHelloHelloHelloHello"
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net